package ch0700;

import ch0300.Person;
import ch0300.Student;

public class Program {

	public static void main(String[] args) {
		try {
		    int[] a=new int[5];
		//System.out.println(args[2]);
			for (int i = 0; i < args.length; i++) {
				try {
					a[i]=Integer.parseInt(args[i]);
				    System.out.println(a[i]);
				} catch (Exception e) {
					// TODO: handle exception
					System.out.println("请输入整数");
				}
			}
		if(args.length<5) {
			throw new IllegalArgumentException("长度不合适");
		}
		}catch (Exception e) {
			// TODO: handle exception
			System.out.println(e.getMessage());
		}
	}

}
